package com.zzjson.serial;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2020 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : TODO </li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2020年08月06日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ThingsObjectDataEventsMessageDTO implements Serializable {
	private static final long serialVersionUID = -896418236416540011L;

	/**
	 * 设备id
	 */
	private Long objectId;

	/**
	 * 事件id
	 */
	private Long eventId;

	/**
	 * 事件名称
	 */
	private String eventName;

	/**
	 * 时间戳
	 */
	private Long dateTime;

	/**
	 * 告警操作类型,触发或取消
	 */
	private String alarmAction;

	private List<EventDetail> data;

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	public static class EventDetail {

		/**
		 * 告警id
		 */
		private Long paramId;

		/**
		 * 告警名称
		 */
		private String name;

		/**
		 * 告警值
		 */
		private String value;

	}


}